<?php

include("_config.php");

$res = $GLOBALS['db']->Query("SELECT name FROM tbljobs where name LIKE '".$_POST['search']."%'");

while($row = $GLOBALS['db']->Fetch($res))  
{ 
	$result[] = $row->name; 
} 

header('Content-type: application/json');
echo json_encode($result);

?>